var http=require('http');
// var User=require('./models/user.js');
var Teacher=require('./models/teacher.js');
http.createServer(function(req,res){
    res.writeHead(200,{'Content-Type':'text/html;charset=utf-8'});
    if(req.url!=='/favicon.ico'){
        teacher=new Teacher(1,'小布丁',20);
        teacher.enter();
        teacher.teach(res);
        // user=new User(1,'小布丁',20);
        // user.name='小布丁';
        // user.enter();
        res.end();
    }
}).listen(3000);
console.log('启动')